<div class="modal-header">
    <h3 class="modal-title">合作意向</h3>
    <i class="fa fa-close fa-2x" ng-click="cancel()"></i>
</div>
<div class="modal-body">
    <div class="meta-section" style="margin:0;">
        <div class="meta-section-header">
            <h4 class="meta-section-header-title">数据：共 {{listCtrl.tableParams.total}} 个合作意向</h4>
            <div class="meta-section-header-search" style="display: none">
                <div class="input-group">
                    <div class="input-group-btn">
                        <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{listCtrl.searchParams.name}} <span class="caret"></span></button>
                        <ul class="dropdown-menu">
                            <li ng-repeat="element in listCtrl.searchParams.data" ng-click="listCtrl.searchParams.changeSearchItem(listCtrl.searchConfig, listCtrl.searchParams, element)"><a>{{element}}</a></li>
                        </ul>
                    </div>
                    <input type="text" class="form-control" ng-model="listCtrl.searchParams.value" ng-keydown="listCtrl.searchParams.search($event)">
                    <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="changeUrl()">搜索</button>
              </span>
                </div>
            </div>
        </div>
        <div class="meta-section-container">
            <table class="table table-condensed table-striped table-bordered meta-table">
                <thead>
                    <tr>
                        <th class="meta-number-11-td">编号</th>
                        <th>合作意向名称</th>
                        <th class="meta-word-6-td">提交人</th>
                        <th class="meta-word-4-td">是否立项</th>
                        <th class="meta-time-td">立项时间<i class="fa fa-arrow-down fa-sort-ctrl-model" ng-click="sortClick('created_at')" id="created_at"></i></th>
                        <th class="meta-icon-1-td">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="element in listCtrl.tableParams.data track by $index">
                        <td>{{element.demand.sn==null?'暂无':element.demand.sn}}</td>
                        <td>{{element.demand.title}}</td>
                        <td>{{element.demand.publisher.name}}</td>
                        <td>{{element.demand.verified==true?'是':'否'}}</td>
                        <td>{{element.demand.createdAt | date:"yyyy-MM-dd" }}</td>
                        <td>
                            <a class="fa fa-eye fa-2x fa-blue" target="_blank" ui-sref="meta.permission.demand.cooperation.detail({id: element.demand.id})"></a>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="meta-page">
                <uib-pagination boundary-links="true" total-items="listCtrl.tableParams.total" ng-model="listCtrl.tableParams.currentPage" ng-change="changeUrl()" class="pagination-sm" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="首页" last-text="尾页" items-per-page="5"
                    max-size="10"></uib-pagination>
            </div>
        </div>
    </div>
</div>
